<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621679616328"><span id="local-6989586621679616329"></span></span><span class="hs-pragma">{-# LANGUAGE CPP                #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-3"></span><span class="hs-pragma">{-# LANGUAGE DeriveGeneric      #-}</span><span>
</span><span id="line-4"></span><span>
</span><span id="line-5"></span><span class="hs-comment">-- | Compact representation of short 'Strings'</span><span>
</span><span id="line-6"></span><span class="hs-comment">--</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- This module is designed to be import qualifeid</span><span>
</span><span id="line-8"></span><span class="hs-comment">--</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- @</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- import Distribution.Utils.ShortText (ShortText)</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- import qualified Distribution.Utils.ShortText as ShortText</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- @</span><span>
</span><span id="line-13"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.Utils.ShortText</span><span>
</span><span id="line-14"></span><span>    </span><span class="hs-special">(</span><span> </span><span class="annot"><span class="hs-comment">-- * 'ShortText' type</span></span><span>
</span><span id="line-15"></span><span>      </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier">ShortText</span></a></span><span>
</span><span id="line-16"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#toShortText"><span class="hs-identifier">toShortText</span></a></span><span>
</span><span id="line-17"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#fromShortText"><span class="hs-identifier">fromShortText</span></a></span><span>
</span><span id="line-18"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#unsafeFromUTF8BS"><span class="hs-identifier">unsafeFromUTF8BS</span></a></span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span>      </span><span class="annot"><span class="hs-comment">-- * Operations</span></span><span>
</span><span id="line-21"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#null"><span class="hs-identifier">null</span></a></span><span>
</span><span id="line-22"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#length"><span class="hs-identifier">length</span></a></span><span>
</span><span id="line-23"></span><span>
</span><span id="line-24"></span><span>      </span><span class="annot"><span class="hs-comment">-- * internal utilities</span></span><span>
</span><span id="line-25"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.String.html#decodeStringUtf8"><span class="hs-identifier">decodeStringUtf8</span></a></span><span>
</span><span id="line-26"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.String.html#encodeStringUtf8"><span class="hs-identifier">encodeStringUtf8</span></a></span><span>
</span><span id="line-27"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-28"></span><span>
</span><span id="line-29"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Compat.Prelude.html"><span class="hs-identifier">Distribution.Compat.Prelude</span></a></span><span> </span><span class="hs-keyword">hiding</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Foldable.html#length"><span class="hs-identifier">length</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier">null</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-30"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-31"></span><span>
</span><span id="line-32"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Utils.String.html"><span class="hs-identifier">Distribution.Utils.String</span></a></span><span>     </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Utils.String.html#decodeStringUtf8"><span class="hs-identifier">decodeStringUtf8</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.String.html#encodeStringUtf8"><span class="hs-identifier">encodeStringUtf8</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-33"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Utils.Structured.html"><span class="hs-identifier">Distribution.Utils.Structured</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Utils.Structured.html#Structured"><span class="hs-identifier">Structured</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Utils.Structured.html#nominalStructure"><span class="hs-identifier">nominalStructure</span></a></span><span class="hs-special">)</span><span class="hs-cpp">

#if defined(MIN_VERSION_bytestring)
</span><span class="hs-cpp"># if MIN_VERSION_bytestring(0,10,4)
</span><span class="hs-cpp"># define HAVE_SHORTBYTESTRING 1
</span><span class="hs-cpp"># endif
</span><span class="hs-cpp">#endif
</span><span>
</span><span id="line-41"></span><span class="hs-comment">-- Hack for GHC bootstrapping</span><span>
</span><span id="line-42"></span><span class="hs-comment">--</span><span>
</span><span id="line-43"></span><span class="hs-comment">-- Currently (as of GHC 8.1), GHC bootstraps Cabal by building</span><span>
</span><span id="line-44"></span><span class="hs-comment">-- binary and Cabal in one giant ghc --make command.  This</span><span>
</span><span id="line-45"></span><span class="hs-comment">-- means no MIN_VERSION_binary macro is available.</span><span>
</span><span id="line-46"></span><span class="hs-comment">--</span><span>
</span><span id="line-47"></span><span class="hs-comment">-- We could try to cleverly figure something out in this case,</span><span>
</span><span id="line-48"></span><span class="hs-comment">-- but there is a better plan: just use the unoptimized version</span><span>
</span><span id="line-49"></span><span class="hs-comment">-- of the Binary instance.  We're not going to use it for anything</span><span>
</span><span id="line-50"></span><span class="hs-comment">-- real in any case.</span><span>
</span><span id="line-51"></span><span class="hs-comment">--</span><span>
</span><span id="line-52"></span><span class="hs-comment">-- WARNING: Don't use MIN_VERSION_binary to smooth over a BC-break!</span><span>
</span><span id="line-53"></span><span class="hs-comment">--</span><span class="hs-cpp">
#ifndef MIN_VERSION_binary
</span><span class="hs-cpp">#define MIN_VERSION_binary(x, y, z) 0
</span><span class="hs-cpp">#endif
</span><span>
</span><span id="line-58"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../bytestring/src/Data.ByteString.html#"><span class="hs-identifier">Data.ByteString</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">BS</span></span><span>
</span><span id="line-59"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../base/src/Data.List.html#"><span class="hs-identifier">Data.List</span></a></span><span>       </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">List</span></span><span class="hs-cpp">

#if HAVE_SHORTBYTESTRING
</span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../bytestring/src/Data.ByteString.Short.html#"><span class="hs-identifier">Data.ByteString.Short</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">BS.Short</span></span><span class="hs-cpp">
#else
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Distribution.Utils.Generic</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">fromUTF8BS</span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-67"></span><span class="hs-comment">-- | Construct 'ShortText' from 'String'</span><span>
</span><span id="line-68"></span><span class="annot"><a href="Distribution.Utils.ShortText.html#toShortText"><span class="hs-identifier hs-type">toShortText</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span><span>
</span><span id="line-69"></span><span>
</span><span id="line-70"></span><span class="hs-comment">-- | Convert 'ShortText' to 'String'</span><span>
</span><span id="line-71"></span><span class="annot"><a href="Distribution.Utils.ShortText.html#fromShortText"><span class="hs-identifier hs-type">fromShortText</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span class="hs-comment">-- | Convert from UTF-8 encoded strict 'ByteString'.</span><span>
</span><span id="line-74"></span><span class="hs-comment">--</span><span>
</span><span id="line-75"></span><span class="hs-comment">-- @since 3.2.0.0</span><span>
</span><span id="line-76"></span><span class="annot"><a href="Distribution.Utils.ShortText.html#unsafeFromUTF8BS"><span class="hs-identifier hs-type">unsafeFromUTF8BS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../bytestring/src/Data.ByteString.Internal.html#ByteString"><span class="hs-identifier hs-type">BS.ByteString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span><span>
</span><span id="line-77"></span><span>
</span><span id="line-78"></span><span class="hs-comment">-- | Text whether 'ShortText' is empty.</span><span>
</span><span id="line-79"></span><span class="hs-comment">--</span><span>
</span><span id="line-80"></span><span class="hs-comment">-- @since 3.2.0.0</span><span>
</span><span id="line-81"></span><span class="annot"><a href="Distribution.Utils.ShortText.html#null"><span class="hs-identifier hs-type">null</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-82"></span><span>
</span><span id="line-83"></span><span class="hs-comment">-- | Compact representation of short 'Strings'</span><span>
</span><span id="line-84"></span><span class="hs-comment">--</span><span>
</span><span id="line-85"></span><span class="hs-comment">-- The data is stored internally as UTF8 in an</span><span>
</span><span id="line-86"></span><span class="hs-comment">-- 'BS.Short.ShortByteString' when compiled against @bytestring &gt;=</span><span>
</span><span id="line-87"></span><span class="hs-comment">-- 0.10.4@, and otherwise the fallback is to use plain old non-compat</span><span>
</span><span id="line-88"></span><span class="hs-comment">-- '[Char]'.</span><span>
</span><span id="line-89"></span><span class="hs-comment">--</span><span>
</span><span id="line-90"></span><span class="hs-comment">-- Note: This type is for internal uses (such as e.g. 'PackageName')</span><span>
</span><span id="line-91"></span><span class="hs-comment">-- and shall not be exposed in Cabal's API</span><span>
</span><span id="line-92"></span><span class="hs-comment">--</span><span>
</span><span id="line-93"></span><span class="hs-comment">-- @since 2.0.0.2</span><span class="hs-cpp">
#if HAVE_SHORTBYTESTRING
</span><span id="local-6989586621679616314"><span id="local-6989586621679616315"></span></span><span class="hs-keyword">newtype</span><span> </span><span id="ShortText"><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-var">ShortText</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="ST"><span class="annot"><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-var">ST</span></a></span></span><span> </span><span class="hs-special">{</span><span> </span><span id="unST"><span class="annot"><span class="annottext">ShortText -&gt; ShortByteString
</span><a href="Distribution.Utils.ShortText.html#unST"><span class="hs-identifier hs-var hs-var">unST</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../bytestring/src/Data.ByteString.Short.Internal.html#ShortByteString"><span class="hs-identifier hs-type">BS.Short.ShortByteString</span></a></span><span> </span><span class="hs-special">}</span><span>
</span><span id="line-96"></span><span>                  </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679616305"><span id="local-6989586621679616310"><span class="annot"><span class="annottext">ShortText -&gt; ShortText -&gt; Bool
(ShortText -&gt; ShortText -&gt; Bool)
-&gt; (ShortText -&gt; ShortText -&gt; Bool) -&gt; Eq ShortText
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: ShortText -&gt; ShortText -&gt; Bool
$c/= :: ShortText -&gt; ShortText -&gt; Bool
== :: ShortText -&gt; ShortText -&gt; Bool
$c== :: ShortText -&gt; ShortText -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span id="local-6989586621679616272"><span id="local-6989586621679616276"><span id="local-6989586621679616280"><span id="local-6989586621679616284"><span id="local-6989586621679616288"><span id="local-6989586621679616292"><span id="local-6989586621679616297"><span class="annot"><span class="annottext">Eq ShortText
Eq ShortText
-&gt; (ShortText -&gt; ShortText -&gt; Ordering)
-&gt; (ShortText -&gt; ShortText -&gt; Bool)
-&gt; (ShortText -&gt; ShortText -&gt; Bool)
-&gt; (ShortText -&gt; ShortText -&gt; Bool)
-&gt; (ShortText -&gt; ShortText -&gt; Bool)
-&gt; (ShortText -&gt; ShortText -&gt; ShortText)
-&gt; (ShortText -&gt; ShortText -&gt; ShortText)
-&gt; Ord ShortText
ShortText -&gt; ShortText -&gt; Bool
ShortText -&gt; ShortText -&gt; Ordering
ShortText -&gt; ShortText -&gt; ShortText
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: ShortText -&gt; ShortText -&gt; ShortText
$cmin :: ShortText -&gt; ShortText -&gt; ShortText
max :: ShortText -&gt; ShortText -&gt; ShortText
$cmax :: ShortText -&gt; ShortText -&gt; ShortText
&gt;= :: ShortText -&gt; ShortText -&gt; Bool
$c&gt;= :: ShortText -&gt; ShortText -&gt; Bool
&gt; :: ShortText -&gt; ShortText -&gt; Bool
$c&gt; :: ShortText -&gt; ShortText -&gt; Bool
&lt;= :: ShortText -&gt; ShortText -&gt; Bool
$c&lt;= :: ShortText -&gt; ShortText -&gt; Bool
&lt; :: ShortText -&gt; ShortText -&gt; Bool
$c&lt; :: ShortText -&gt; ShortText -&gt; Bool
compare :: ShortText -&gt; ShortText -&gt; Ordering
$ccompare :: ShortText -&gt; ShortText -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">(forall x. ShortText -&gt; Rep ShortText x)
-&gt; (forall x. Rep ShortText x -&gt; ShortText) -&gt; Generic ShortText
forall x. Rep ShortText x -&gt; ShortText
forall x. ShortText -&gt; Rep ShortText x
forall a.
(forall x. a -&gt; Rep a x) -&gt; (forall x. Rep a x -&gt; a) -&gt; Generic a
$cto :: forall x. Rep ShortText x -&gt; ShortText
$cfrom :: forall x. ShortText -&gt; Rep ShortText x
</span><a href="../../base/src/GHC.Generics.html#Generic"><span class="hs-identifier hs-var hs-var hs-var hs-var">Generic</span></a></span><span class="hs-special">,</span><span id="local-6989586621679616231"><span id="local-6989586621679616233"><span id="local-6989586621679616235"><span id="local-6989586621679616237"><span id="local-6989586621679616239"><span id="local-6989586621679616241"><span id="local-6989586621679616243"><span id="local-6989586621679616245"><span id="local-6989586621679616247"><span id="local-6989586621679616249"><span id="local-6989586621679616251"><span id="local-6989586621679616253"><span id="local-6989586621679616256"><span id="local-6989586621679616260"><span class="annot"><span class="annottext">Typeable ShortText
Typeable ShortText
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; ShortText -&gt; c ShortText)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ShortText)
-&gt; (ShortText -&gt; Constr)
-&gt; (ShortText -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ShortText))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c ShortText))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; ShortText -&gt; ShortText)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; [u])
-&gt; (forall u.
    Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText)
-&gt; Data ShortText
ShortText -&gt; DataType
ShortText -&gt; Constr
(forall b. Data b =&gt; b -&gt; b) -&gt; ShortText -&gt; ShortText
forall a.
Typeable a
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; a -&gt; c a)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c a)
-&gt; (a -&gt; Constr)
-&gt; (a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c a))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c a))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; a -&gt; a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; Data a
forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; u
forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; [u]
forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r
forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r
forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ShortText
forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; ShortText -&gt; c ShortText
forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ShortText)
forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c ShortText)
gmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
$cgmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
gmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
$cgmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
gmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
$cgmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; ShortText -&gt; m ShortText
gmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; u
$cgmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; u
gmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; [u]
$cgmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; ShortText -&gt; [u]
gmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r
$cgmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r
gmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r
$cgmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ShortText -&gt; r
gmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; ShortText -&gt; ShortText
$cgmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; ShortText -&gt; ShortText
dataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c ShortText)
$cdataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c ShortText)
dataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ShortText)
$cdataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ShortText)
dataTypeOf :: ShortText -&gt; DataType
$cdataTypeOf :: ShortText -&gt; DataType
toConstr :: ShortText -&gt; Constr
$ctoConstr :: ShortText -&gt; Constr
gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ShortText
$cgunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ShortText
gfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; ShortText -&gt; c ShortText
$cgfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; ShortText -&gt; c ShortText
</span><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Data</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span class="hs-special">)</span><span class="hs-cpp">

# if MIN_VERSION_binary(0,8,1)
</span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679616226"><span class="annot"><a href="../../binary/src/Data.Binary.Class.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-100"></span><span>    </span><span id="local-6989586621679616222"><span class="annot"><span class="annottext">put :: ShortText -&gt; Put
</span><a href="../../binary/src/Data.Binary.Class.html#put"><span class="hs-identifier hs-var hs-var hs-var hs-var">put</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; Put
forall t. Binary t =&gt; t -&gt; Put
</span><a href="../../binary/src/Data.Binary.Class.html#put"><span class="hs-identifier hs-var">put</span></a></span><span> </span><span class="annot"><span class="annottext">(ShortByteString -&gt; Put)
-&gt; (ShortText -&gt; ShortByteString) -&gt; ShortText -&gt; Put
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShortText -&gt; ShortByteString
</span><a href="Distribution.Utils.ShortText.html#unST"><span class="hs-identifier hs-var hs-var">unST</span></a></span><span>
</span><span id="line-101"></span><span>    </span><span id="local-6989586621679616216"><span class="annot"><span class="annottext">get :: Get ShortText
</span><a href="../../binary/src/Data.Binary.Class.html#get"><span class="hs-identifier hs-var hs-var hs-var hs-var">get</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(ShortByteString -&gt; ShortText)
-&gt; Get ShortByteString -&gt; Get ShortText
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var">fmap</span></a></span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-var">ST</span></a></span><span> </span><span class="annot"><span class="annottext">Get ShortByteString
forall t. Binary t =&gt; Get t
</span><a href="../../binary/src/Data.Binary.Class.html#get"><span class="hs-identifier hs-var">get</span></a></span><span class="hs-cpp">
# else
</span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Binary</span><span> </span><span class="hs-identifier">ShortText</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-104"></span><span>    </span><span class="hs-identifier">put</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">put</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">BS.Short.fromShort</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">unST</span><span>
</span><span id="line-105"></span><span>    </span><span class="hs-identifier">get</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">fmap</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">ST</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">BS.Short.toShort</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">get</span><span class="hs-cpp">
# endif
</span><span>
</span><span id="line-108"></span><span>
</span><span id="line-109"></span><span id="toShortText"><span class="annot"><span class="annottext">toShortText :: String -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#toShortText"><span class="hs-identifier hs-var hs-var">toShortText</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-var">ST</span></a></span><span> </span><span class="annot"><span class="annottext">(ShortByteString -&gt; ShortText)
-&gt; (String -&gt; ShortByteString) -&gt; String -&gt; ShortText
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">[Word8] -&gt; ShortByteString
</span><a href="../../bytestring/src/Data.ByteString.Short.Internal.html#pack"><span class="hs-identifier hs-var">BS.Short.pack</span></a></span><span> </span><span class="annot"><span class="annottext">([Word8] -&gt; ShortByteString)
-&gt; (String -&gt; [Word8]) -&gt; String -&gt; ShortByteString
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; [Word8]
</span><a href="Distribution.Utils.String.html#encodeStringUtf8"><span class="hs-identifier hs-var">encodeStringUtf8</span></a></span><span>
</span><span id="line-110"></span><span>
</span><span id="line-111"></span><span id="fromShortText"><span class="annot"><span class="annottext">fromShortText :: ShortText -&gt; String
</span><a href="Distribution.Utils.ShortText.html#fromShortText"><span class="hs-identifier hs-var hs-var">fromShortText</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[Word8] -&gt; String
</span><a href="Distribution.Utils.String.html#decodeStringUtf8"><span class="hs-identifier hs-var">decodeStringUtf8</span></a></span><span> </span><span class="annot"><span class="annottext">([Word8] -&gt; String)
-&gt; (ShortText -&gt; [Word8]) -&gt; ShortText -&gt; String
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; [Word8]
</span><a href="../../bytestring/src/Data.ByteString.Short.Internal.html#unpack"><span class="hs-identifier hs-var">BS.Short.unpack</span></a></span><span> </span><span class="annot"><span class="annottext">(ShortByteString -&gt; [Word8])
-&gt; (ShortText -&gt; ShortByteString) -&gt; ShortText -&gt; [Word8]
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShortText -&gt; ShortByteString
</span><a href="Distribution.Utils.ShortText.html#unST"><span class="hs-identifier hs-var hs-var">unST</span></a></span><span>
</span><span id="line-112"></span><span>
</span><span id="line-113"></span><span id="unsafeFromUTF8BS"><span class="annot"><span class="annottext">unsafeFromUTF8BS :: ByteString -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#unsafeFromUTF8BS"><span class="hs-identifier hs-var hs-var">unsafeFromUTF8BS</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-var">ST</span></a></span><span> </span><span class="annot"><span class="annottext">(ShortByteString -&gt; ShortText)
-&gt; (ByteString -&gt; ShortByteString) -&gt; ByteString -&gt; ShortText
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ByteString -&gt; ShortByteString
</span><a href="../../bytestring/src/Data.ByteString.Short.Internal.html#toShort"><span class="hs-identifier hs-var">BS.Short.toShort</span></a></span><span>
</span><span id="line-114"></span><span>
</span><span id="line-115"></span><span id="null"><span class="annot"><span class="annottext">null :: ShortText -&gt; Bool
</span><a href="Distribution.Utils.ShortText.html#null"><span class="hs-identifier hs-var hs-var">null</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; Bool
</span><a href="../../bytestring/src/Data.ByteString.Short.Internal.html#null"><span class="hs-identifier hs-var">BS.Short.null</span></a></span><span> </span><span class="annot"><span class="annottext">(ShortByteString -&gt; Bool)
-&gt; (ShortText -&gt; ShortByteString) -&gt; ShortText -&gt; Bool
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShortText -&gt; ShortByteString
</span><a href="Distribution.Utils.ShortText.html#unST"><span class="hs-identifier hs-var hs-var">unST</span></a></span><span class="hs-cpp">
#else
</span><span class="hs-keyword">newtype</span><span> </span><span class="hs-identifier">ShortText</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">ST</span><span> </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">unST</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">String</span><span> </span><span class="hs-special">}</span><span>
</span><span id="line-118"></span><span>                  </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">Eq</span><span class="hs-special">,</span><span class="hs-identifier">Ord</span><span class="hs-special">,</span><span class="hs-identifier">Generic</span><span class="hs-special">,</span><span class="hs-identifier">Data</span><span class="hs-special">,</span><span class="hs-identifier">Typeable</span><span class="hs-special">)</span><span>
</span><span id="line-119"></span><span>
</span><span id="line-120"></span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier">Binary</span><span> </span><span class="hs-identifier">ShortText</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-121"></span><span>    </span><span class="hs-identifier">put</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">put</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">encodeStringUtf8</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">unST</span><span>
</span><span id="line-122"></span><span>    </span><span class="hs-identifier">get</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">fmap</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">ST</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">decodeStringUtf8</span><span class="hs-special">)</span><span> </span><span class="hs-identifier">get</span><span>
</span><span id="line-123"></span><span>
</span><span id="line-124"></span><span class="hs-identifier">toShortText</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">ST</span><span>
</span><span id="line-125"></span><span>
</span><span id="line-126"></span><span class="hs-identifier">fromShortText</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">unST</span><span>
</span><span id="line-127"></span><span>
</span><span id="line-128"></span><span class="hs-identifier">unsafeFromUTF8BS</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">ST</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">fromUTF8BS</span><span>
</span><span id="line-129"></span><span>
</span><span id="line-130"></span><span class="hs-identifier">null</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">List.null</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">unST</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-133"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679616206"><span class="annot"><a href="Distribution.Utils.Structured.html#Structured"><span class="hs-identifier hs-type">Structured</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span></span><span> </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679616203"><span class="annot"><span class="annottext">structure :: Proxy ShortText -&gt; Structure
</span><a href="Distribution.Utils.Structured.html#structure"><span class="hs-identifier hs-var hs-var hs-var hs-var">structure</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Proxy ShortText -&gt; Structure
forall {k} (a :: k). Typeable a =&gt; Proxy a -&gt; Structure
</span><a href="Distribution.Utils.Structured.html#nominalStructure"><span class="hs-identifier hs-var">nominalStructure</span></a></span><span>
</span><span id="line-134"></span><span>
</span><span id="line-135"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../deepseq/src/Control.DeepSeq.html#NFData"><span class="hs-identifier hs-type">NFData</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-136"></span><span>    </span><span id="local-6989586621679616196"><span class="annot"><span class="annottext">rnf :: ShortText -&gt; ()
</span><a href="../../deepseq/src/Control.DeepSeq.html#rnf"><span class="hs-identifier hs-var hs-var hs-var hs-var">rnf</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; ()
forall a. NFData a =&gt; a -&gt; ()
</span><a href="../../deepseq/src/Control.DeepSeq.html#rnf"><span class="hs-identifier hs-var">rnf</span></a></span><span> </span><span class="annot"><span class="annottext">(ShortByteString -&gt; ())
-&gt; (ShortText -&gt; ShortByteString) -&gt; ShortText -&gt; ()
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShortText -&gt; ShortByteString
</span><a href="Distribution.Utils.ShortText.html#unST"><span class="hs-identifier hs-var hs-var">unST</span></a></span><span>
</span><span id="line-137"></span><span>
</span><span id="line-138"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679616190"><span id="local-6989586621679616193"><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-139"></span><span>    </span><span id="local-6989586621679616184"><span class="annot"><span class="annottext">show :: ShortText -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var hs-var hs-var hs-var">show</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShowS
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; (ShortText -&gt; String) -&gt; ShortText -&gt; String
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShortText -&gt; String
</span><a href="Distribution.Utils.ShortText.html#fromShortText"><span class="hs-identifier hs-var">fromShortText</span></a></span><span>
</span><span id="line-140"></span><span>
</span><span id="line-141"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679616176"><span id="local-6989586621679616178"><span id="local-6989586621679616180"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-142"></span><span>    </span><span id="local-6989586621679616168"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS ShortText
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span id="local-6989586621679616166"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679616166"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">((String, String) -&gt; (ShortText, String))
-&gt; [(String, String)] -&gt; [(ShortText, String)]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(String -&gt; ShortText) -&gt; (String, String) -&gt; (ShortText, String)
forall (a :: * -&gt; * -&gt; *) b c d.
Arrow a =&gt;
a b c -&gt; a (b, d) (c, d)
</span><a href="../../base/src/Control.Arrow.html#first"><span class="hs-identifier hs-var">first</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#toShortText"><span class="hs-identifier hs-var">toShortText</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">([(String, String)] -&gt; [(ShortText, String)])
-&gt; (String -&gt; [(String, String)]) -&gt; ReadS ShortText
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; String -&gt; [(String, String)]
forall a. Read a =&gt; Int -&gt; ReadS a
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var">readsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679616166"><span class="hs-identifier hs-var">p</span></a></span><span>
</span><span id="line-143"></span><span>
</span><span id="line-144"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679616161"><span id="local-6989586621679616163"><span class="annot"><a href="../../base/src/GHC.Base.html#Semigroup"><span class="hs-identifier hs-type">Semigroup</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-145"></span><span>    </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-type">ST</span></a></span><span> </span><span id="local-6989586621679616157"><span class="annot"><span class="annottext">ShortByteString
</span><a href="#local-6989586621679616157"><span class="hs-identifier hs-var">a</span></a></span></span><span> </span><span id="local-6989586621679616156"><span class="annot"><span class="annottext">&lt;&gt; :: ShortText -&gt; ShortText -&gt; ShortText
</span><a href="../../base/src/GHC.Base.html#%3C%3E"><span class="hs-operator hs-var hs-var hs-var hs-var">&lt;&gt;</span></a></span></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-type">ST</span></a></span><span> </span><span id="local-6989586621679616155"><span class="annot"><span class="annottext">ShortByteString
</span><a href="#local-6989586621679616155"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-var">ST</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ShortByteString -&gt; ShortByteString -&gt; ShortByteString
forall a. Monoid a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-identifier hs-var">mappend</span></a></span><span> </span><span class="annot"><span class="annottext">ShortByteString
</span><a href="#local-6989586621679616157"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">ShortByteString
</span><a href="#local-6989586621679616155"><span class="hs-identifier hs-var">b</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-146"></span><span>
</span><span id="line-147"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679616149"><span class="annot"><a href="../../base/src/GHC.Base.html#Monoid"><span class="hs-identifier hs-type">Monoid</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-148"></span><span>    </span><span id="local-6989586621679616146"><span class="annot"><span class="annottext">mempty :: ShortText
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var hs-var hs-var hs-var">mempty</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortByteString -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#ST"><span class="hs-identifier hs-var">ST</span></a></span><span> </span><span class="annot"><span class="annottext">ShortByteString
forall a. Monoid a =&gt; a
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var">mempty</span></a></span><span>
</span><span id="line-149"></span><span>    </span><span id="local-6989586621679616144"><span class="annot"><span class="annottext">mappend :: ShortText -&gt; ShortText -&gt; ShortText
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-identifier hs-var hs-var hs-var hs-var">mappend</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ShortText -&gt; ShortText -&gt; ShortText
forall a. Semigroup a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#%3C%3E"><span class="hs-operator hs-var">(&lt;&gt;)</span></a></span><span>
</span><span id="line-150"></span><span>
</span><span id="line-151"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../base/src/Data.String.html#IsString"><span class="hs-identifier hs-type">IsString</span></a></span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-152"></span><span>    </span><span id="local-6989586621679616140"><span class="annot"><span class="annottext">fromString :: String -&gt; ShortText
</span><a href="../../base/src/Data.String.html#fromString"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromString</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShortText
</span><a href="Distribution.Utils.ShortText.html#toShortText"><span class="hs-identifier hs-var">toShortText</span></a></span><span>
</span><span id="line-153"></span><span>
</span><span id="line-154"></span><span class="hs-comment">-- | /O(n)/. Length in characters. /Slow/ as converts to string.</span><span>
</span><span id="line-155"></span><span class="hs-comment">--</span><span>
</span><span id="line-156"></span><span class="hs-comment">-- @since 3.2.0.0</span><span>
</span><span id="line-157"></span><span class="annot"><a href="Distribution.Utils.ShortText.html#length"><span class="hs-identifier hs-type">length</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Utils.ShortText.html#ShortText"><span class="hs-identifier hs-type">ShortText</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-158"></span><span id="length"><span class="annot"><span class="annottext">length :: ShortText -&gt; Int
</span><a href="Distribution.Utils.ShortText.html#length"><span class="hs-identifier hs-var hs-var">length</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Int
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Int
</span><a href="../../base/src/Data.Foldable.html#length"><span class="hs-identifier hs-var">List.length</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; Int) -&gt; (ShortText -&gt; String) -&gt; ShortText -&gt; Int
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ShortText -&gt; String
</span><a href="Distribution.Utils.ShortText.html#fromShortText"><span class="hs-identifier hs-var">fromShortText</span></a></span><span>
</span><span id="line-159"></span><span class="hs-comment">-- Note: avoid using it, we use it @cabal check@ implementation, where it's ok.</span><span>
</span><span id="line-160"></span></pre></body></html>